//
//  SISSLoginNetworkingManager+Resources.h
//  SISSAPP
//
//  Created by 优房网 on 2017/3/30.
//  Copyright © 2017年 优房网. All rights reserved.
//

#import "SISSLoginNetworkingManager.h"
#import "SISSPassengerResourceModel.h"
#import "SISSHouseResourceModel.h"
#import "SISSHouseCooperationModel.h"
#import "SISSPassengerCooperationModel.h"
#import "SISSBasePagingModel.h"
#import "SISSRentOutModel.h"
#import "SISSTenantModel.h"
#import "SISSNewHouseListModel.h"
#import "SISSBuildingProjectModel.h"


@interface SISSLoginNetworkingManager (Resources)

/**
 2.2.1 已委托房源
 
 @param parameters 筛选参数
 @param successBlock 成功模型数组的回调
 @param failedBlock 失败的回调
 */
- (void)requestEntrustHouseResourceWithParameters:(NSDictionary *)parameters success:(void(^)(NSArray<SISSHouseResourceModel *> *houseResources))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 2.2.2 已委托客源
 
 @param parameters 筛选参数
 @param successBlock 成功模型数组的回调
 @param failedBlock 失败的回调
 */
- (void)requestEntrustPassengerResourceWithParameters:(NSDictionary *)parameters success:(void(^)(NSArray<SISSPassengerResourceModel *> *passengerResources))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 2.4.1 筛选房源、找房源的请求

 @param pageNo 页码
 @param parameters 筛选参数
 @param successBlock 成功模型数组的回调
 @param failedBlock 失败的回调
 */
- (void)requestFilterSearchHouseResourceWithPageNo:(NSInteger)pageNo parameters:(NSDictionary *)parameters success:(void(^)(SISSBasePagingModel *baseModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 2.4.2 筛选客源、找客源的请求
 
 @param pageNo 页码
 @param parameters 筛选参数
 @param successBlock 成功模型数组的回调
 @param failedBlock 失败的回调
 */
- (void)requestFilterSearchPassengerResourceWithPageNo:(NSInteger)pageNo parameters:(NSDictionary *)parameters success:(void(^)(SISSBasePagingModel *baseModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 2.4.3 筛选房源合作、找房源合作的请求

 @param parameters 筛选参数
 @param successBlock 成功模型数组的回调
 @param failedBlock 失败的回调
 */
- (void)requestFilterHouseResourceCooperationWithParameters:(NSDictionary *)parameters success:(void(^)(SISSBasePagingModel *baseModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 2.4.4 筛选客源合作、找客源合作的请求

 @param parameters 筛选参数
 @param successBlock 成功模型数组的回调
 @param failedBlock 失败的回调
 */
- (void)requestFilterPassengerResourceCooperationWithParameters:(NSDictionary *)parameters success:(void(^)(SISSBasePagingModel *baseModel))successBlock failed:(void(^)(NSError *error))failedBlock;


/**
 2.9.1 推荐房源

 @param passengerId 客源id
 @param houserArr 推荐的房源数组
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestInsetRecommendHouseWithPassengerId:(NSInteger)passengerId houseArr:(NSArray<SISSHouseResourceModel *> *)houserArr success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 2.9.2 推荐客源

 @param houseId 房源id
 @param passengerArr 推荐的客源数组
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */

- (void)requestInsetRecommendPassengerWithHouseId:(NSInteger)houseId passengerArr:(NSArray<SISSPassengerResourceModel *> *)passengerArr success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;


#pragma mark - 2.0
/**
 2.2.3 获取已委托出租信息
 
 @param parameters 筛选参数
 @param successBlock 成功模型数组的回调
 @param failedBlock 失败的回调
 */
- (void)requestEntrustRentOutResourceWithParameters:(NSDictionary *)parameters success:(void(^)(NSArray<SISSRentOutModel *> *rentOutResources))successBlock failed:(void(^)(NSError *error))failedBlock;


/**
 2.2.4 获取已委托租客信息
 
 @param parameters 筛选参数
 @param successBlock 成功模型数组的回调
 @param failedBlock 失败的回调
 */
- (void)requestEntrustTenantResourceWithParameters:(NSDictionary *)parameters success:(void(^)(NSArray<SISSTenantModel *> *tenantResources))successBlock failed:(void(^)(NSError *error))failedBlock;


/**
 2.4.5 筛选出租、找出租
 
 @param parameters 筛选参数
 @param successBlock 成功模型数组的回调
 @param failedBlock 失败的回调
 */
- (void)requestFilterRentOutResourceCooperationWithParameters:(NSDictionary *)parameters success:(void(^)(SISSBasePagingModel *baseModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 2.4.6 筛选租客、找租客
 
 @param parameters 筛选参数
 @param successBlock 成功模型数组的回调
 @param failedBlock 失败的回调
 */
- (void)requestFilterTenantResourceCooperationWithParameters:(NSDictionary *)parameters success:(void(^)(SISSBasePagingModel *baseModel))successBlock failed:(void(^)(NSError *error))failedBlock;


/**
 2.4.7 筛选新房、找新房

 @param parameters 筛选参数
 @param successBlock 成功模型数组的回调
 @param failedBlock 失败的回调
 */
- (void)requestFilterNewHouseResourceWithParameters:(NSDictionary *)parameters success:(void(^)(SISSNewHouseListModel *newHouseListModel))successBlock failed:(void(^)(NSError *error))failedBlock;


/**
 2.4.7.1 获取新房楼盘详情 GET请求

 @param buildName 楼盘名称
 @param successBlock 成功模型数组的回调
 @param failedBlock 失败的回调
 */
- (void)requestNewHouseBuildingDetailResourceWithBuidName:(NSString *)buildName success:(void(^)(SISSBuildingProjectModel *buildingProjectModel))successBlock failed:(void(^)(NSError *error))failedBlock;

@end


